package main

import (
	"fmt"
)

type User struct{
	Username string
	Sex string
	Age int
	AvatarUrl string
}
func main()  {
   var user *User
   fmt.Printf("user=%v\n",user)

   var user01 *User = &User{}
   user01.Age = 18
   user01.Username = "user01"
   fmt.Printf("user01 = %#v\n",user01)

   var user02 *User = &User{
	   Username:"user02",
	   Age:18,
   }
   fmt.Printf("user02 = %#v\n",user02)

   var user03 *User = new(User)
   user03.Username = "user03"
   user03.Age = 18
   fmt.Printf("user03 = %#v\n",user03)
}